public class Array_03 {



    //斐波那契数列
    public static void main(String[] args) {
        int[]arr=new int[20];
        arr[0]=1;
        arr[1]=1;
        for (int i=2;i<20;i++){
            arr[i]=arr[i-2]+arr[i-1];
        }
        System.out.print("[");
        for (int i=0;i<arr.length;i++){
            if (i==arr.length-1){
                System.out.print(arr[i]);
            }
            else
            {
                System.out.print(arr[i]+",");
            }
        }
        System.out.println("]");
    }

}
